import request from "../utils/request"
export const GET_CODE = () => {
	return uni.request({
		url: 'http://localhost:8002/admin/sendcode',
		method: 'GET'
	})
}

export const DO_LOGIN = (phone) => {
	return uni.request({
		url:'http://localhost:8002/admin/loginuser',
		method:"POST",
		data: {
			phone
		}
	})
}

export const GET_PHONE_CODE = () => {
	return request({
		url: '/admin/sendcode'
	})
}

export const PHONE_LOGIN = (phone) => {
	return request({
		url: '/admin/loginuser',
		method: "POST",
		data: {
			phone
		}
	})
}